package com.paperlessmedical.util;

import javax.annotation.Resource;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.transaction.annotation.Transactional;

public class HibernateUtil {
   @Resource 
   private SessionFactory sessionFactory ;
   Session session = null ;
   public Session getSession(){
	   return sessionFactory.getCurrentSession() ;
   }
}
